package com.wuxi.zhang.factory;

/**
 * @author wheat on 2019/12/24.
 */
public class TestFactory {

    public static void main(String[] args) {
        Factory ak = new M4_Factory();
        Gun gun = ak.produceGun();
        gun.shooting();

        Bullet bullet = ak.produceBullet();
        bullet.load();
    }
}
